Skip to content

feat: support for relative (percent) metrics in data contract checks.#1248

Open
HenrikSpiegel wants to merge 10 commits into
datacontract:mainfrom
HenrikSpiegel:main
Open

feat: support for relative (percent) metrics in data contract checks.#1248
HenrikSpiegel wants to merge 10 commits into
datacontract:mainfrom
HenrikSpiegel:main

Conversation

@HenrikSpiegel
Copy link
Copy Markdown

  • Tests pass (uv run pytest)
  • Code formatted (uv run ruff check --fix && uv run ruff format)
  • README.md updated (if relevant)
  • CHANGELOG.md entry added

#1228

Comment thread datacontract/engines/data_contract_checks.py
Copy link
Copy Markdown
Collaborator

@jschoedl jschoedl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the PR! A few notes, and please add test cases for this in the tests directory - e.g.:

  • test that percent really appends %
  • test that no % exists for the default case or rows
  • test that e.g. check_property_null_values with percent produces the correct sodacl check
  • test that a percent sign in check_row_count behaves correctly

Comment thread datacontract/engines/data_contract_checks.py
Comment thread datacontract/engines/data_contract_checks.py Outdated
Comment thread datacontract/engines/data_contract_checks.py Outdated
Comment thread datacontract/engines/data_contract_checks.py Outdated
Comment thread datacontract/engines/data_contract_checks.py Outdated
@HenrikSpiegel HenrikSpiegel requested a review from jschoedl June 2, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add support for inbuilt quality metrics with relative thresholds as per ODCS 3.1.

2 participants